cmake_minimum_required(VERSION 2.8)

project(ba_demo_ceres)

find_package(Ceres REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ")

include_directories(${CERES_INCLUDE_DIRS} )

add_executable(${PROJECT_NAME} ba_demo.cpp baproblem.cpp parametersse3.cpp)
target_link_libraries(${PROJECT_NAME} ${CERES_LIBRARIES} )

add_executable(ba_6d ba_demo_6d.cpp baproblem.cpp parametersse3.cpp)
target_link_libraries(ba_6d ${CERES_LIBRARIES})
